PORTNAME=	polari
PORTVERSION=	43.0
CATEGORIES=	irc gnome
MASTER_SITES=	GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Internet Relay Chat (IRC) client designed for GNOME
WWW=		https://wiki.gnome.org/Apps/Polari

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	appstream-util:devel/appstream-glib \
		itstool:textproc/itstool
LIB_DEPENDS=	libtelepathy-glib.so:net-im/telepathy-glib \
		libsecret-1.so:security/libsecret \
		libsoup-3.0.so:devel/libsoup3 \
		libtelepathy-logger.so:net-im/telepathy-logger \
		libwebkit2gtk-4.1.so:www/webkit2-gtk3 \
		libgjs.so:lang/gjs
RUN_DEPENDS=	gjs-console:lang/gjs \
		telepathy-idle>0:net-im/telepathy-idle \
		gspell>0:textproc/gspell

USES=		desktop-file-utils gettext gnome localbase \
		meson pkgconfig tar:xz
USE_GNOME=	cairo glib20 gtk40 introspection libadwaita
USE_LDCONFIG=	yes

GLIB_SCHEMAS=	org.gnome.Polari.gschema.xml

.include <bsd.port.mk>
